Package com.cisco.pt.ipc.sim.pdu.impl
Class PTPPacketImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCDataImpl
com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
com.cisco.pt.ipc.sim.pdu.impl.PduImpl
com.cisco.pt.ipc.sim.pdu.impl.PTPPacketImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected intprotected Shortprotected intprotected doubleprotected Shortprotected Shortprotected intprotected Stringprotected Shortprotected Shortprotected intprotected Shortprotected Shortprotected intprotected doubleprotected Stringprotected Shortprotected Shortprotected Stringprotected Shortprotected Shortprotected Shortprotected intprotected Shortprotected ShortFields inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
fieldNames, fieldTable, signalType, typeTable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeTypeAndPayload(EncodedBuffer buffer) getFieldType(String fieldName) intintdoubleintintintdoubleintgetTs()voidpduRead(EncodedBuffer buffer) voidread(EncodedBuffer buffer) Reads this object from an EncodedBuffer of raw datavoidsetM_accuracy(String m_accuracy) voidsetM_class(int m_class) voidsetM_control(Short m_control) voidsetM_correctionScaledFractionalTime(int m_correctionScaledFractionalTime) voidsetM_correctionTime(double m_correctionTime) voidsetM_currentUtcOffset(Short m_currentUtcOffset) voidsetM_domainNumber(Short m_domainNumber) voidsetM_flag(int m_flag) voidsetM_grandmasterId(String m_grandmasterId) voidsetM_grandmasterPri1(Short m_grandmasterPri1) voidsetM_grandmasterPri2(Short m_grandmasterPri2) voidsetM_logMsgInterval(int m_logMsgInterval) voidsetM_messageLength(Short m_messageLength) voidsetM_msgId(Short m_msgId) voidsetM_orgTimeNanoSeconds(int m_orgTimeNanoSeconds) voidsetM_orgTimeSeconds(double m_orgTimeSeconds) voidsetM_requestingSourcePortId(String m_requestingSourcePortId) voidsetM_requestingSourcePortNum(Short m_requestingSourcePortNum) voidsetM_sequenceId(Short m_sequenceId) voidsetM_sourcePortId(String m_sourcePortId) voidsetM_sourcePortNum(Short m_sourcePortNum) voidsetM_stepsRemoved(Short m_stepsRemoved) voidsetM_timeSource(Short m_timeSource) voidsetM_variance(int m_variance) voidsetM_version(Short m_version) voidMethods inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
getFieldValueMethods inherited from class com.cisco.pt.ipc.impl.IPCDataImpl
checkType, pduReadBoolean, pduReadByte, pduReadDouble, pduReadFloat, pduReadInt, pduReadIPAddress, pduReadIPCData, pduReadIPV6Address, pduReadLong, pduReadMACAddress, pduReadPair, pduReadQString, pduReadShort, pduReadString, pduReadUUID, pduReadVector, readBoolean, readByte, readDouble, readFloat, readInt, readIPAddress, readIPCData, readIPV6Address, readLong, readMACAddress, readPair, readQString, readShort, readString, readUUID, readVectorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.sim.pdu.Signal
getFieldValue
-
Field Details
-
ts
-
m_msgId
-
m_version
-
m_messageLength
-
m_domainNumber
-
m_flag
protected int m_flag -
m_correctionTime
protected double m_correctionTime -
m_correctionScaledFractionalTime
protected int m_correctionScaledFractionalTime -
m_sourcePortId
-
m_sourcePortNum
-
m_sequenceId
-
m_control
-
m_logMsgInterval
protected int m_logMsgInterval -
m_orgTimeSeconds
protected double m_orgTimeSeconds -
m_orgTimeNanoSeconds
protected int m_orgTimeNanoSeconds -
m_requestingSourcePortId
-
m_requestingSourcePortNum
-
m_currentUtcOffset
-
m_grandmasterPri1
-
m_class
protected int m_class -
m_accuracy
-
m_variance
protected int m_variance -
m_grandmasterPri2
-
m_grandmasterId
-
m_stepsRemoved
-
m_timeSource
-
-
Constructor Details
-
PTPPacketImpl
public PTPPacketImpl()
-
-
Method Details
-
getTs
-
setTs
-
getM_msgId
- Specified by:
getM_msgIdin interfacePTPPacket- Returns:
- Short Returns a Short
-
setM_msgId
- Specified by:
setM_msgIdin interfacePTPPacket- Parameters:
m_msgId- Takes in a parameter of m_msgId
-
getM_version
- Specified by:
getM_versionin interfacePTPPacket- Returns:
- Short Returns a Short
-
setM_version
- Specified by:
setM_versionin interfacePTPPacket- Parameters:
m_version- Takes in a parameter of m_version
-
getM_messageLength
- Specified by:
getM_messageLengthin interfacePTPPacket- Returns:
- Short Returns a Short
-
setM_messageLength
- Specified by:
setM_messageLengthin interfacePTPPacket- Parameters:
m_messageLength- Takes in a parameter of m_messageLength
-
getM_domainNumber
- Specified by:
getM_domainNumberin interfacePTPPacket- Returns:
- Short Returns a Short
-
setM_domainNumber
- Specified by:
setM_domainNumberin interfacePTPPacket- Parameters:
m_domainNumber- Takes in a parameter of m_domainNumber
-
getM_flag
public int getM_flag() -
setM_flag
public void setM_flag(int m_flag) -
getM_correctionTime
public double getM_correctionTime()- Specified by:
getM_correctionTimein interfacePTPPacket- Returns:
- double Returns a double
-
setM_correctionTime
public void setM_correctionTime(double m_correctionTime) - Specified by:
setM_correctionTimein interfacePTPPacket- Parameters:
m_correctionTime- Takes in a parameter of m_correctionTime
-
getM_correctionScaledFractionalTime
public int getM_correctionScaledFractionalTime()- Specified by:
getM_correctionScaledFractionalTimein interfacePTPPacket- Returns:
- int Returns a int
-
setM_correctionScaledFractionalTime
public void setM_correctionScaledFractionalTime(int m_correctionScaledFractionalTime) - Specified by:
setM_correctionScaledFractionalTimein interfacePTPPacket- Parameters:
m_correctionScaledFractionalTime- Takes in a parameter of m_correctionScaledFractionalTime
-
getM_sourcePortId
- Specified by:
getM_sourcePortIdin interfacePTPPacket- Returns:
- String Returns a String
-
setM_sourcePortId
- Specified by:
setM_sourcePortIdin interfacePTPPacket- Parameters:
m_sourcePortId- Takes in a parameter of m_sourcePortId
-
getM_sourcePortNum
- Specified by:
getM_sourcePortNumin interfacePTPPacket- Returns:
- Short Returns a Short
-
setM_sourcePortNum
- Specified by:
setM_sourcePortNumin interfacePTPPacket- Parameters:
m_sourcePortNum- Takes in a parameter of m_sourcePortNum
-
getM_sequenceId
- Specified by:
getM_sequenceIdin interfacePTPPacket- Returns:
- Short Returns a Short
-
setM_sequenceId
- Specified by:
setM_sequenceIdin interfacePTPPacket- Parameters:
m_sequenceId- Takes in a parameter of m_sequenceId
-
getM_control
- Specified by:
getM_controlin interfacePTPPacket- Returns:
- Short Returns a Short
-
setM_control
- Specified by:
setM_controlin interfacePTPPacket- Parameters:
m_control- Takes in a parameter of m_control
-
getM_logMsgInterval
public int getM_logMsgInterval()- Specified by:
getM_logMsgIntervalin interfacePTPPacket- Returns:
- int Returns a int
-
setM_logMsgInterval
public void setM_logMsgInterval(int m_logMsgInterval) - Specified by:
setM_logMsgIntervalin interfacePTPPacket- Parameters:
m_logMsgInterval- Takes in a parameter of m_logMsgInterval
-
getM_orgTimeSeconds
public double getM_orgTimeSeconds()- Specified by:
getM_orgTimeSecondsin interfacePTPPacket- Returns:
- double Returns a double
-
setM_orgTimeSeconds
public void setM_orgTimeSeconds(double m_orgTimeSeconds) - Specified by:
setM_orgTimeSecondsin interfacePTPPacket- Parameters:
m_orgTimeSeconds- Takes in a parameter of m_orgTimeSeconds
-
getM_orgTimeNanoSeconds
public int getM_orgTimeNanoSeconds()- Specified by:
getM_orgTimeNanoSecondsin interfacePTPPacket- Returns:
- int Returns a int
-
setM_orgTimeNanoSeconds
public void setM_orgTimeNanoSeconds(int m_orgTimeNanoSeconds) - Specified by:
setM_orgTimeNanoSecondsin interfacePTPPacket- Parameters:
m_orgTimeNanoSeconds- Takes in a parameter of m_orgTimeNanoSeconds
-
getM_requestingSourcePortId
- Specified by:
getM_requestingSourcePortIdin interfacePTPPacket- Returns:
- String Returns a String
-
setM_requestingSourcePortId
- Specified by:
setM_requestingSourcePortIdin interfacePTPPacket- Parameters:
m_requestingSourcePortId- Takes in a parameter of m_requestingSourcePortId
-
getM_requestingSourcePortNum
- Specified by:
getM_requestingSourcePortNumin interfacePTPPacket- Returns:
- Short Returns a Short
-
setM_requestingSourcePortNum
- Specified by:
setM_requestingSourcePortNumin interfacePTPPacket- Parameters:
m_requestingSourcePortNum- Takes in a parameter of m_requestingSourcePortNum
-
getM_currentUtcOffset
- Specified by:
getM_currentUtcOffsetin interfacePTPPacket- Returns:
- Short Returns a Short
-
setM_currentUtcOffset
- Specified by:
setM_currentUtcOffsetin interfacePTPPacket- Parameters:
m_currentUtcOffset- Takes in a parameter of m_currentUtcOffset
-
getM_grandmasterPri1
- Specified by:
getM_grandmasterPri1in interfacePTPPacket- Returns:
- Short Returns a Short
-
setM_grandmasterPri1
- Specified by:
setM_grandmasterPri1in interfacePTPPacket- Parameters:
m_grandmasterPri1- Takes in a parameter of m_grandmasterPri1
-
getM_class
public int getM_class()- Specified by:
getM_classin interfacePTPPacket- Returns:
- int Returns a int
-
setM_class
public void setM_class(int m_class) - Specified by:
setM_classin interfacePTPPacket- Parameters:
m_class- Takes in a parameter of m_class
-
getM_accuracy
- Specified by:
getM_accuracyin interfacePTPPacket- Returns:
- String Returns a String
-
setM_accuracy
- Specified by:
setM_accuracyin interfacePTPPacket- Parameters:
m_accuracy- Takes in a parameter of m_accuracy
-
getM_variance
public int getM_variance()- Specified by:
getM_variancein interfacePTPPacket- Returns:
- int Returns a int
-
setM_variance
public void setM_variance(int m_variance) - Specified by:
setM_variancein interfacePTPPacket- Parameters:
m_variance- Takes in a parameter of m_variance
-
getM_grandmasterPri2
- Specified by:
getM_grandmasterPri2in interfacePTPPacket- Returns:
- Short Returns a Short
-
setM_grandmasterPri2
- Specified by:
setM_grandmasterPri2in interfacePTPPacket- Parameters:
m_grandmasterPri2- Takes in a parameter of m_grandmasterPri2
-
getM_grandmasterId
- Specified by:
getM_grandmasterIdin interfacePTPPacket- Returns:
- String Returns a String
-
setM_grandmasterId
- Specified by:
setM_grandmasterIdin interfacePTPPacket- Parameters:
m_grandmasterId- Takes in a parameter of m_grandmasterId
-
getM_stepsRemoved
- Specified by:
getM_stepsRemovedin interfacePTPPacket- Returns:
- Short Returns a Short
-
setM_stepsRemoved
- Specified by:
setM_stepsRemovedin interfacePTPPacket- Parameters:
m_stepsRemoved- Takes in a parameter of m_stepsRemoved
-
getM_timeSource
- Specified by:
getM_timeSourcein interfacePTPPacket- Returns:
- Short Returns a Short
-
setM_timeSource
- Specified by:
setM_timeSourcein interfacePTPPacket- Parameters:
m_timeSource- Takes in a parameter of m_timeSource
-
getFieldType
- Overrides:
getFieldTypein classPduImpl
-
read
Reads this object from an EncodedBuffer of raw data -
pduRead
-
getOrderedFieldNames
- Specified by:
getOrderedFieldNamesin interfaceSignal- Overrides:
getOrderedFieldNamesin classPduImpl
-
encodeTypeAndPayload
- Specified by:
encodeTypeAndPayloadin interfaceSignal- Overrides:
encodeTypeAndPayloadin classPduImpl
-